/*
 * @ author Junr
 * @ use 用户相关
 */
import Request from '../request';
export default {
  // 登录
  login (params) {
    return Request.post({ url: `/login`, params });
  },

  // 绑定手机号
  bindPhone (params) {
    return Request.post({ url: '/bindPhone', params });
  },

  // 忘记密码
  forgetPw (params) {
    return Request.post({ url: '/forgetPassword', params });
  },

  logOut (params) {
    return Request.post({ url: '/loginOut', params });
  },

  loginToken (params) {
    return Request.post({ url: '/loginToken', params });
  },

  register (params) {
    return Request.post({ url: '/register', params });
  },

  sendsms (params) {
    return Request.post({ url: '/sendsms', params });
  },

  upgrageVersion (params) {
    return Request.post({ url: '/upgragVersion', params });
  },

  feedBack (params) {
    return Request.post({ url: '/feedBack', params });
  },

  getUserInfo (params) {
    return Request.post({ url: '/getUserInfo', params });
  },

  shareInfo (params) {
    return Request.post({ url: '/shareInfo', params });
  },

  shareSuccess (params) {
    return Request.post({ url: '/shareSuccess', params });
  },

  updateUserInfo (params) {
    return Request.post({ url: '/updateUserInfo', params });
  },

  updateImg (params) {
    return Request.post({ url: '/updateImg', params });
  },
};
